import time
sp = []
d = open("m1.sorted.txt")
for i in d:
    sp.append(int(i))
def sort(sp):
    for i in range(len(sp)-1):
        for j in range(len(sp)-1-i):
            if sp[j] > sp[j+1]:
                t = sp[j]
                sp[j] = sp[j+1]
                sp[j+1] = t
                k += 1
            if k == 0:
                break
    return sp
start = time. perf_counter
sp = sort(sp)
finish = time.perf_counter()
print("m1.sorted", finish-start, "milliseconds")
d1=open("m1.sortet.txt")
sp2 = []
round((finish-start)*1000)
